import { isFunction } from 'lodash'
export default async ({
    dispatch,
    index,
    actionConfig,
}: any) => {
    let isSucess = true
    let params = {}
    if (isFunction(actionConfig?.action)) {
        params = await actionConfig?.action({ dispatch })
    }

    //调用接口 把参数params传入

    return { isSucess, }
}